const jwt = require('jsonwebtoken');

module.exports = (token)=>{
  return new Promise((resolve, reject)=>{
    jwt.verify(token, "千锋H5", (err, data)=>{
      if(err){
        reject(err);
      }else{
        resolve(data);
      }
    })
  })
}
